﻿using System;
using System.Linq.Expressions;

namespace Yz.Base
{
    public class ParaPage : ParaModel
    {
        /// <summary>
        /// 跳过多少行
        /// </summary>
        public int SkipNum { get; set; }
        /// <summary>
        /// 取多少行(等于0时 不分页)
        /// </summary>
        public int TakeNum { get; set; } = 0;
    }
    public class ParaOrder<T> : ParaModel
    {
        public Expression<Func<T, dynamic>> Order { get; set; }
        public bool IsAsc { get; set; } = true;
    }
}
